package com.info.zhiduoduo.repository.dto.maker;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.info.zhiduoduo.common.excelconverter.IntFlagConverter;
import com.info.zhiduoduo.common.excelconverter.MakerUnifiedStatusConverter;
import com.info.zhiduoduo.common.excelconverter.MakerUnifiedTypeConverter;
import com.info.zhiduoduo.common.excelconverter.OpeningLocationConverter;
import com.info.zhiduoduo.common.utils.DateUtil;

import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)  //setter return this;
@ToString
public class MakerStatusInfoDto {

	@DateTimeFormat(DateUtil.FORMAT_STYLE_2)
	@ApiModelProperty("注册时间")
	@ExcelProperty("注册时间")
	private Date registerDate;
	@ExcelIgnore
	private Integer userid;
	@ApiModelProperty("姓名")
	@ExcelProperty("姓名")
	private String realname;
	@ApiModelProperty("手机号码")
	@ExcelProperty("手机号码")
	private String phone;
	@ApiModelProperty("微信昵称")
	@ExcelProperty("微信昵称")
	private String nickname;
	@ApiModelProperty("工作室名称")
	@ExcelProperty("工作室名称")
	private String username;
	@ApiModelProperty("绑定的企业id")
	@ExcelIgnore
	private Integer bindcompid;
	@ApiModelProperty("绑定企业")
	@ExcelProperty("绑定企业")
	private String bindcompname;
	@ApiModelProperty("是否为临时登陆类型: 0:否 1:是")
	@ExcelProperty(value = "临时登陆", converter = IntFlagConverter.class)
	private Integer temporaryLogin;
	@ApiModelProperty("是否主动注册 nul.全部 0.否 1.是")
	@ExcelProperty(value = "主动注册", converter = IntFlagConverter.class)
	private Integer voluntary;
	@ApiModelProperty("专家标签（0：关闭1：开启）")
	@ExcelProperty(value = "专家", converter = IntFlagConverter.class)
	private Integer expertLabelState;
	@ApiModelProperty("是否为友好创客 0.否 1.是")
	@ExcelProperty(value = "友好创客", converter = IntFlagConverter.class)
	private Integer friendlyMaker;
	@ApiModelProperty("是否为友好企业 0.否 1.是")
	@ExcelProperty(value = "友好企业", converter = IntFlagConverter.class)
	private Integer friendlyCompany;
	@ApiModelProperty("是否开通支付宝公户0:否 1:是")
	@ExcelProperty(value = "支付宝公户", converter = IntFlagConverter.class)
	private Integer isOpenAliPay;
	@ApiModelProperty("是否是合伙人工作室：0.否 1.是")
	@ExcelProperty(value = "合伙人工作室", converter = IntFlagConverter.class)
	private Integer partnerStudio;
	@ApiModelProperty("状态 null或0.全部 1：审核中 2：已实名 3：已注销 4：已开户 5：已开税户")
	@ExcelProperty(value = "状态", converter = MakerUnifiedStatusConverter.class)
	private Integer unifiedState;
	@ApiModelProperty("品牌：1：  2：  3:智众包 4.纯代理")
	@ExcelProperty(value = "品牌", converter = MakerUnifiedTypeConverter.class)
	private Integer makerType;
	@ApiModelProperty("注册地： 1.天津 2.共青城 3.芜湖 4.普陀山 5.徐州市 6.银川市 7.长沙市")
	@ExcelProperty(value = "注册地", converter = OpeningLocationConverter.class)
	private Integer openingLocation;
	@ApiModelProperty("注销日期")
	@ExcelProperty("注销日期")
	@DateTimeFormat(DateUtil.FORMAT_STYLE_2)
	private Date rescissionDate;
	@ApiModelProperty("开户日期")
	@ExcelProperty("开户日期")
	@DateTimeFormat(DateUtil.FORMAT_STYLE_2)
	private Date openStudioDate;
	@ApiModelProperty("开税户日期")
	@ExcelProperty("开税户日期")
	@DateTimeFormat(DateUtil.FORMAT_STYLE_2)
	private Date openAcctDate;
	@ApiModelProperty("用户状态 1注册未绑定手机 2已绑定手机 3冻结 4解约")
	@ExcelIgnore
	private Integer state;
	@ApiModelProperty("实名认证 1.未认证 2认证失败 3:重新提交 4:已认证 5:已开户")
	@ExcelIgnore
	private Integer realnameAuth;
	@ApiModelProperty("工作室状态1:创建中 2:已确定")
	@ExcelIgnore
	private int studioState;
	@ApiModelProperty("税户状态 1：不可开户 2：可以开户 3：已开户")
	@ExcelIgnore
	private Integer taxAcctState;
	@ApiModelProperty("是否已开税户 0：否 1：是")
	@ExcelIgnore
	private Integer openTaxAcct;
	@ApiModelProperty("是否开通 功能 0：否 1：是")
	@ExcelIgnore
	private Integer taxer;
	@ApiModelProperty("是否开银行公户（null:全部 0:否 1:是）")
	@ExcelProperty(value = "是否开银行公户", converter = IntFlagConverter.class)
	private Integer isOpenAccNo2;

}
